<?php 
header("Content-type: text/html; charset=utf-8");
//方法1
echo'lianxi';
$schools=array('大连东软信息学院','大连理工大学','大连海事大学');
//2
/*$schools[]=array();*/
$schools[]='大连医科大学';
$schools[]='东北财经大学';
/*for ($i=0; $i <count($schools) ; $i++) { 
echo '<li>'.$schools[$i].'</li>';

}*/
/*foreach ($schools as $i=>$one) {
echo '<li>'.($i+1).$one.'</li>';
}
echo'</ul>';*/
$school1=array('school_code'=>'01','school_name'=>'大连东软信息学院');
$school2=array();
$school2['school_code']='02';
$school2['school_name']='大连理工大学';

$school3=array();
$school3['school_code']='03';
$school3['school_name']='大连海事大学';


/*foreach ($school1 as $key => $value) {
	echo'key='.$key.',value='.$value;
	echo '<br>';
}
echo '高校代码:'.$school1['school_code'];*/

echo '<table>';
echo'<tr><th> 高校代码</th><th>高校名称</th>';
$schools=array($school1,$school2,$school3);
foreach($schools as $one) {
	echo '<tr>';
foreach ($one as $key=> $value) {
	echo '<td>'.$value.'</td>';
}
echo '</tr>';
}
echo'</table>';



 ?>